pocket = int(input())
print(pocket//13)
print(pocket%13)